import { S } from '../../s';
import { IPSChartCoordinateSystemSingle } from './ipschart-coordinate-system-single';
import { IPSChartSingle } from './ipschart-single';
import { PSDEChartCoordinateSystemImplBase } from './psdechart-coordinate-system-impl-base';

export class PSDEChartCoordinateSystemSingleImpl
  extends PSDEChartCoordinateSystemImplBase
  implements IPSChartCoordinateSystemSingle
{
  protected pschartsingle: IPSChartSingle;
  getPSChartSingle(): IPSChartSingle | null {
    return (
      this.pschartsingle ||
      (this.pschartsingle = this.fillObjectModel(
        S._110,
        this.M.getPSChartSingle,
        S._2fe,
      ) as IPSChartSingle)
    );
  }
  get cls(): string {
    return 'PSDEChartCoordinateSystemSingleImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._ed) return true;
    return super.instanceof(cls);
  }
}
